package com.cloud.tsp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cloud.api.domain.command.CommandBatch;
import com.cloud.api.domain.model.ModelCommand;
import com.cloud.api.domain.tsp.Command;
import com.cloud.api.domain.tsp.CommandRequest;
import com.cloud.api.domain.tsp.DelGroupRequest;
import com.cloud.api.domain.tsp.IssueCommandByCode;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author haohaibo
 * @since 2023-11-29
 */
public interface ICommandService extends IService<Command> {

    List<Command>selectCommand(String id);

    List<Command>selectCommandByModel(String modelId);

    List<ModelCommand> selectGroupCommandById(String modelId);

    void insertCommand(Command para);

    void insertCommandBatch(CommandBatch para);

    void updateCommand(CommandRequest para);

    void updateCommandStatus(Command para);

    void deleteCommand(String id,String groupName);

    void deleteControlGroup(DelGroupRequest para);

    void issueCommand(IssueCommandByCode para);

    List<String> selectCommands();
}